package ForSoSo.common;

import java.text.DecimalFormat;
/*
* 公共类
* */
public class Common {
    public static String dataFormat(double data){
        DecimalFormat format=new DecimalFormat("#.0");
        return  format.format(data);
    }
    public static double sub(double num1,double num2){
        return (num1*10-num2*10)/10;
    }
}
